using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN CachTinhHocBongService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: CachTinhHocBongService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class CachTinhHocBongService : ICachTinhHocBongService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: CachTinhHocBong_ID</para>
		/// <para>Output: CachTinhHocBongEntity</para>
		///</summary>
		public CachTinhHocBongEntity SelectOne(int CachTinhHocBong_ID){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.SelectOne(CachTinhHocBong_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CachTinhHocBongEntity</para>
		///</summary>
		public List<CachTinhHocBongEntity> SelectAll(){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CachTinhHocBongEntity</para>
		///</summary>
		public List<CachTinhHocBongEntity> SelectAllFilter(string strFilter){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: CachTinhHocBongEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(CachTinhHocBongEntity o){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: CachTinhHocBongEntity</para>
		/// <para>Output: CachTinhHocBongEntity</para>
		///</summary>
		public CachTinhHocBongEntity SaveRet(CachTinhHocBongEntity o){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of CachTinhHocBongEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<CachTinhHocBongEntity> list){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of CachTinhHocBongEntity</para>
		/// <para>Output: List of CachTinhHocBongEntity</para>
		///</summary>
		public List<CachTinhHocBongEntity> SaveListRet(List<CachTinhHocBongEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: CachTinhHocBongEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(CachTinhHocBongEntity o){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of CachTinhHocBongEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<CachTinhHocBongEntity> list){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenCachTinh</para>
		/// <para>Input: NewTenCachTinh,CachTinhHocBong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenCachTinh(string NewTenCachTinh,int CachTinhHocBong_ID){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.UpdateTenCachTinh(NewTenCachTinh,CachTinhHocBong_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,CachTinhHocBong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int CachTinhHocBong_ID){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.UpdateGhiChu(NewGhiChu,CachTinhHocBong_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateCachTinh</para>
		/// <para>Input: NewCachTinh,CachTinhHocBong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateCachTinh(Byte NewCachTinh,int CachTinhHocBong_ID){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.UpdateCachTinh(NewCachTinh,CachTinhHocBong_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: CachTinhHocBongEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(CachTinhHocBongEntity o){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: CachTinhHocBong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int CachTinhHocBong_ID){
			CachTinhHocBongDAO dao = new CachTinhHocBongDAO();
			return dao.DeleteByID(CachTinhHocBong_ID);
		}
		#endregion

		#region Select,delete by CachTinhHocBong_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END CachTinhHocBongWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

